<div class="header">
    <back-Btn></back-Btn>
    销项发票
</div>
<div class="container finance task-review">
    <div class="list f_sk">
        <div user-info no="TaskReview.result.fileNo" depname="TaskReview.result.departmentName"
            date="TaskReview.result.applyDate" username="TaskReview.result.userName"></div>
        <div class="section">
            <div class="list-item flex">
                <div class="w40 c9">项目编号</div>
                <div class="w60">{{TaskReview.result.projectNo}}</div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">项目名称</div>
                <div class="w60" relative-module="Xm_ProjectStore" module-no="{{ TaskReview.result.projectNo }}">
                    {{ TaskReview.result.projectName }}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">发票类型 </div>
                <div class="w60">
                    {{TaskReview.result.invoiceType}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">发票税率 </div>
                <div class="w60">
                    {{TaskReview.result.taxRate}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">发票金额 </div>
                <div class="w60">
                    {{TaskReview.result.totalAmount|NBFmt}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">发票税额 </div>
                <div class="w60">
                    {{TaskReview.result.taxAmount|NBFmt}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">已到账金额 </div>
                <div class="w60">
                    {{TaskReview.result.receivedAmount|NBFmt}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">发票金额大写 </div>
                <div class="w60">
                    {{TaskReview.result.amountInWorld}}
                </div>
            </div>
            <div class="list-item flex">
                <div class="w40 c9">发票状态 </div>
                <div class="w60" ng-switch="TaskReview.result.status">
                    <div ng-switch-when="0">
                        已作废
                    </div>
                    <div ng-switch-when="1">
                        正常
                    </div>
                    <div ng-switch-when="-1">
                        冲红
                    </div>
                </div>
            </div>
            <div class="list-item flex" ng-show="TaskReview.result.remark">
                <div class="w40 c9">备注</div>
                <div class="w60">{{TaskReview.result.remark}}</div>
            </div>
            <div invoice-detail value="TaskReview.result.details"></div>
            <div class="list table-list"
                ng-show="TaskReview.result.taxesDetails&&TaskReview.result.taxesDetails.length>0">
                <div class="info-title">本次开票对应的缴税记录 </div>
                <div class="table-item" ng-repeat="item in TaskReview.result.taxesDetails">
                    <div class="list-item">
                        <div class="item-label">编号 </div>
                        <div class="flow-content" relative-module="Xm_TaxesPayment" module-no="{{ item.targetNo }}">
                            {{ item.targetNo }}
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">申请日期 </div>
                        <div class="flow-content">{{ item.targetDate|dateFmt }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">税额总计 </div>
                        <div class="flow-content">{{ item.targetTax|NBFmt }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">销售金额 </div>
                        <div class="flow-content">{{ item.targetAmount|NBFmt }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">税务机关 </div>
                        <div class="flow-content">{{ item.targetContent }}</div>
                    </div>
                </div>
            </div>
            <div class="list table-list"
                ng-show="TaskReview.result.inputDetails&&TaskReview.result.inputDetails.length>0">
                <div class="info-title">本次开票对应的进项发票 </div>
                <div class="table-item" ng-repeat="item in TaskReview.result.inputDetails">
                    <div class="list-item">
                        <div class="item-label">编号 </div>
                        <div class="flow-content" relative-module="Xm_InputInvoice" module-no="{{ item.targetNo }}">
                            {{ item.targetNo }}
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">申请日期 </div>
                        <div class="flow-content">{{ item.targetDate|dateFmt }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">税额总计 </div>
                        <div class="flow-content">{{ item.targetTax|NBFmt }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">价税总计 </div>
                        <div class="flow-content">{{ item.targetAmount|NBFmt }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">税务机关 </div>
                        <div class="flow-content">{{ item.targetContent }}</div>
                    </div>
                </div>
            </div>
            <div class="list table-list"
                ng-show="TaskReview.result.gatheringDetails&&TaskReview.result.gatheringDetails.length>0">
                <div class="info-title">本次开票对应的收款记录 </div>
                <div class="table-item" ng-repeat="item in TaskReview.result.gatheringDetails">
                    <div class="list-item">
                        <div class="item-label">编号 </div>
                        <div class="flow-content" relative-module="Xm_ProjectGathering" module-no="{{ item.targetNo }}">
                            {{ item.targetNo }}
                        </div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">交款日期 </div>
                        <div class="flow-content">{{ item.targetDate|dateFmt }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">交款人 </div>
                        <div class="flow-content">{{ item.targetContent }}</div>
                    </div>
                    <div class="list-item">
                        <div class="item-label">收款金额 </div>
                        <div class="flow-content">{{ item.targetAmount|NBFmt }}</div>
                    </div>
                </div>
            </div>
            <div class="list table-list"
                ng-show="TaskReview.result.taxName||TaskReview.result.bankAccount||TaskReview.result.phoneNo||TaskReview.result.bankName||TaskReview.result.address||TaskReview.result.taxNo">
                <div class="info-title">购买方信息 </div>
                <div class="table-item">
                    <div class="list-item" ng-show="TaskReview.result.taxName">
                        <div class="item-label">公司名称 </div>
                        <div class="flow-content">{{ TaskReview.result.taxName }}</div>
                    </div>
                    <div class="list-item" ng-show="TaskReview.result.bankAccount">
                        <div class="item-label">银行账号 </div>
                        <div class="flow-content">{{ TaskReview.result.bankAccount }}</div>
                    </div>
                    <div class="list-item" ng-show="TaskReview.result.phoneNo">
                        <div class="item-label">电话 </div>
                        <div class="flow-content">{{ TaskReview.result.phoneNo  }}</div>
                    </div>
                    <div class="list-item" ng-show="TaskReview.result.bankName">
                        <div class="item-label">开户行 </div>
                        <div class="flow-content">{{ TaskReview.result.bankName }}</div>
                    </div>
                    <div class="list-item" ng-show="TaskReview.result.address">
                        <div class="item-label">地址 </div>
                        <div class="flow-content">{{ TaskReview.result.address}}</div>
                    </div>
                    <div class="list-item" ng-show="TaskReview.result.taxNo">
                        <div class="item-label">税号 </div>
                        <div class="flow-content">{{ TaskReview.result.taxNo }}</div>
                    </div>
                </div>
            </div>
            <!-- 自定义字段 -->
            <div checkuser-define field-map="TaskReview.result.customFields"></div>
            <!-- 附件 -->
            <div class="file-upload" file-list checked="true" file-data="TaskReview.result.attachment"></div>
        </div>
        <div log-list taskid="process_id"></div>
    </div>
</div>